<%--
  Created by IntelliJ IDEA.
  User: meng
  Date: 2020/5/17
  Time: 11:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath();%>
<html>
<head>
    <title></title>
    <style>
        body {
            background-color: #a7a8bd;
        }
        ul{
            margin-top: 30px;
        }
        li{
            list-style-type: none;
        }
        .resumeStyle{
            margin-left: 650px;

        }
        #xin{
            margin-left: 1350px;
            margin-top: 20px;
        }
    </style>
</head>
<body>
<span id="xin" >
    <a href="${pageContext.servletContext.contextPath}/web/person/personResume" title="添加一个简历">
        <img src="${pageContext.servletContext.contextPath}/static/images/web/tianjia.png" style="width: 70px;">
    </a>
</span>
<ul>
    <c:forEach items="${requestScope.resumes}" var="resume" varStatus="x">
        <li value="${resume.id}" id="ll${resume.id}">
            <a href="${pageContext.servletContext.contextPath}/web/person/personResume?resumeId=${resume.id}" class="resumeStyle">个人简历</a>
            ${x.count}<br><hr>
            <%--<a href="#">个人简历</a>--%>
        </li>
    </c:forEach>
</ul>
</body>
</html>
<script type="text/javascript" src="<%=path%>/static/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
    $("[id^=ll]").click(function () {
        //alert($(this).val())
        var id=$(this).val();
        $.get("${pageContext.servletContext.contextPath}/web/person/personResumeSetResumeId",{resumeId:id});
    });
</script>